package com.ruoyi.api.kehu;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.IJiajiaFaqService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/api/kehu/faq")
@Api(tags = "常见问题")
public class ApiFAQController {

    @Autowired
    private IJiajiaFaqService faqService;

    @ApiOperation("常见问题列表")
    @PostMapping("/list")
    public AjaxResult list()
    {
        return AjaxResult.success(faqService.selectJiajiaFaqList(null));
    }
}
